<%= form_for(@image, :html => {:multipart => true }) do |f| %>
  <% if @image.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@image.errors.count, "error") %> prohibited this image from being saved:</h2>

      <ul>
      <% @image.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :picture %><br /><br />
    <%= f.file_field :picture %>
  </div>
  <div class="field">
    <%= f.label :notes %><br />
    <%= f.text_field :notes %>
  </div>
  <div class="field">
    <%= f.label :date_taken %><br />
    <%= f.date_select :date_taken %>
  </div>
  <%= hidden_field_tag(:patient_id, @patient.id) %>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
